package com.fz.entity.project;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 项目标段历史信息
 * </p>
 *
 * @author xmj
 * @since 2021-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("project_part_history")
@ApiModel(value="ProjectPartHistory对象", description="项目标段历史信息")
public class ProjectPartHistory extends Model<ProjectPartHistory> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标段ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "公告ID")
    private Long noticeId;

    @ApiModelProperty(value = "原标段ID")
    private Long partId;

    @ApiModelProperty(value = "标段名称")
    private String name;

    @ApiModelProperty(value = "标书编号")
    private String tenderNo;

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "资格要求")
    private String partRequire;

    @ApiModelProperty(value = "标段内容")
    private String partContent;

    @ApiModelProperty(value = "标段金额")
    private BigDecimal partAmt;

    @ApiModelProperty(value = "生效 0否 1是")
    private String status;

    @ApiModelProperty(value = "中标公示时间起")
    private LocalDateTime issueStartDate;

    @ApiModelProperty(value = "中标公示时间止")
    private LocalDateTime issueEndDate;

    @ApiModelProperty(value = "第一中标排序单位名称")
    private String winner;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
